package com.smart.community.feign.emergency;

import com.smart.community.commons.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 紧急服务Feign接口
 * 
 * @author Wu.Liang
 */
@FeignClient(
    name = "smart-community-emergency",
    fallback = EmergencyFeignClientFallback.class
)
public interface EmergencyFeignClient {
    
    /**
     * 获取应急预案
     * 
     * @param communityId 社区ID
     * @return 应急预案
     */
    @GetMapping("/emergency/plan/{communityId}")
    Result<?> getEmergencyPlan(@PathVariable("communityId") Long communityId);
    
    /**
     * 获取紧急求助记录
     * 
     * @param userId 用户ID
     * @return 紧急求助记录
     */
    @GetMapping("/emergency/help/{userId}")
    Result<?> getEmergencyHelp(@PathVariable("userId") Long userId);
    
    /**
     * 获取紧急联系人
     * 
     * @param userId 用户ID
     * @return 紧急联系人
     */
    @GetMapping("/emergency/contact/{userId}")
    Result<?> getEmergencyContacts(@PathVariable("userId") Long userId);
} 